﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/6/6 星期四 23:37:12
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Framework.DB;
using Sector7.Medical.EntityType;
using Sector7.Framework.EntityType;

namespace Sector7.Medical.DAO
{
    /// <summary>
    /// 员工数据访问接口
    /// </summary>
    public interface IEmployeeDAO : IDAOBase<M7_Employee>
    {
        /// <summary>
        /// 获取唯一编号
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        string GetUniqueId(string username, string password);

        /// <summary>
        /// 获取所有员工
        /// </summary>
        /// <returns></returns>
        List<M7_Employee> ReadAll();

        /// <summary>
        /// 获取所有医生
        /// </summary>
        /// <returns></returns>
        List<M7_Employee> ReadAllByDoctorOrSpecialist();

        /// <summary>
        /// 更新员工
        /// </summary>
        /// <param name="employee">员工信息</param>
        /// <returns></returns>
        int Update(M7_Employee employee);
    }
}
